package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type UserWithdrawAccount struct {
	Id            int    `json:"id" gorm:"primaryKey;autoIncrement"`
	Uid           int    `json:"uid"`            //int(11) DEFAULT NULL,
	Default       int    `json:"default"`        //int(1) DEFAULT '0' COMMENT '1-默认账户',
	AlipayName    string `json:"alipay_name"`    //varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '支付宝姓名',
	AlipayAccount string `json:"alipay_account"` //varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '支付宝账号',
}

func (UserWithdrawAccount) TableName() string {
	return fmt.Sprintf("%suser_withdraw_account", models.Prefix)
}
